package net.csdn.business.discuss.api.model.query;

import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 讨论配置对象Query discuss_config
 * 
 * @author zhangyl
 * @date 2023-07-21
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DiscussConfigQuery implements Serializable
{
    /** 组织ID/仓库ID */
    @NotBlank(message = "sourceId不能为空")
    private String sourceId;
    /** 1:组织；2:仓库 */
    @NotNull(message = "sourceType不能为空")
    @Range(min = 1, max = 2, message = "sourceType不合法")
    private Integer sourceType;
}
